<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     
  
$mtype = $T->db->query("select mtype from sys_school where id=".$_SESSION['school'])->fetchColumn(0);
if($mtype==6){
    $T->SetBlock("list","select id,sch_name from sys_school where id=".$_SESSION['school']." order by id");
}else{
    $T->SetBlock("list","select id,sch_name from sys_school order by id");
}

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 